﻿/*  This file is part of SvnCommitToFTP.
 *  
 *  SvnCommitToFTP is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 
 *  SvnCommitToFTP is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with SvnCommitToFTP.  If not, see <http://www.gnu.org/licenses/>.
 *  
 *  Copyright 2008 Alexandru Petrescu (alex.petrescu@gmail.com)
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Softec.SubversionSharp;

namespace SvnCommitToFTP
{
    public class SvnLogChangePathEntry
    {
        #region Properties
        string path;

        public string Path
        {
            get { return this.path; }
        }

        char action;

        public char Action
        {
            get { return this.action; }
        }

        string copyFromPath;

        public string CopyFromPath
        {
            get { return this.copyFromPath; }
        }

        SvnRevision copyFromRevision;

        public SvnRevision CopyFromRevision
        {
            get { return this.copyFromRevision; }
        }
        #endregion

        public SvnLogChangePathEntry(string path, char action, string copyFromPath, SvnRevision copyFromRevision)
        {
            this.path = path;
            this.action = action;
            this.copyFromPath = copyFromPath != null ? copyFromPath : "";
            this.copyFromRevision = copyFromRevision;
        }
    }
}
